using System.Windows;
using System.Windows.Markup;

namespace MainView.Windows
{
	public partial class DeviceNotFoundWindow : Window, IComponentConnector
	{
		public enum EDialogResult
		{
			Close,
			VirtualDevice,
			Retry
		}

		public new EDialogResult DialogResult { get; set; }

		public DeviceNotFoundWindow()
		{
			InitializeComponent();
		}

		private void btnVirtual_Click(object sender, RoutedEventArgs e)
		{
			DialogResult = EDialogResult.VirtualDevice;
			Close();
		}

		private void btnRetry_Click(object sender, RoutedEventArgs e)
		{
			DialogResult = EDialogResult.Retry;
			Close();
		}

		public void DisableVitrualMode()
		{
			btnVirtual.Visibility = Visibility.Collapsed;
		}
	}
}
